import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/pages/Login'
import Register from '@/components/pages/Register'
import Home from '@/components/Home'
import Index from '@/components/container/index'
import Index1 from '@/components/container/index1'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/Login',
      name: 'Login',
      component: Login,
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register,
    }, {
      path: '/',
      name: 'Home',
      component: Home,
      children: [{
          path: '/index',
          name: 'Index',
          component: Index
        },
        {
          path: '/index1',
          name: 'Index1',
          component: Index1
        }
      ]
    },
    {
      path: '/',
      redirect: '/home'
    },

  ]
})
